package org.xinhe.eosc.simple.consumer.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import org.xinhe.eosc.simple.service.api.FooCloudService;

/**
 * <p>Title: FooController</p>
 * <p>Date: 17/5/11 </p>
 * <p>Description: </p>
 *
 * @author sunxinhe
 */
@Api("f01")
@RestController
@RequestMapping("/f01")
public class FooConsumerController {

    private static final Logger LOGGER = LoggerFactory.getLogger(FooConsumerController.class);

    @Autowired
    private FooCloudService fooCloudService;

    @ApiOperation("a")
    @RequestMapping(value = "/a", method = RequestMethod.GET)
    public String a(
            @ApiParam(name = "arg", required = false,value = "arg")
            @RequestParam(name = "arg", required = false) String arg) {
        arg = fooCloudService.a(arg);
        return arg;
    }

}
